<template>
    <div class="content">
        <div
        @click="jumpPrivese(item)"
        :key="index"
        v-for="(item, index) in mvInfo"
        class="item">
            <img v-lazy="item.cover">
            <div>
                <div class="name">{{item.name}}</div>
                <div class="author">{{item.artistName}}</div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    props: {
        mvInfo: {
            type: Array,
            default: []
        }
    },
    methods: {
        // 跳转到MV预览
        jumpPrivese(item) {
            this.$router.push(`/mv/privece/${item.id}`);
        }
    }
}
</script>

<style lang="less" scoped>
.content {
    display: flex;
    flex-wrap: wrap;
    margin-top: 66px;
    .item {
        width: 25%;
        justify-content: center;
        margin-bottom: 20px;
        cursor: pointer;
        
       img {
           width: 200px;
           height: 160px;
       }
       .name {
           margin-top: 12px;
           color: #4a4a4a;
           font-weight: 700;
           width: 200px;
       }
       .author {
           font-size: 14px;
           color: #999999;
           margin: 4px 0;
       }
       .tags {
           color: #fc221e;
           font-size: 14px;
           span {
               margin-right: 10px;
           }
       }
    }
}
</style>